My understanding (which might be incorrect) is that if he is not involved in the move he is not offside.
However he moved for the ball to try & head it so surely was involved ?
Hard decision either way.
One of the handballs & the foul on Gunnarsson however were more clear cut IMO.
Officiating was poor again.