@Gingeletiss That is not what the offside rule is. A player can't be offside if the ball is no where near them.
Scott Dann with the assist and Benteke with the goal were clearly onside, what any other Palace players did was irrelevant as the ball was not near them.