Yeah, that's not league title form. But we didn't get any help from the ref, that's just not correct.
He wasn't offside - or more appropriately - it WAS a penalty.
"a player in an offisde position is moving towards the ball with the intention of playing the ball and is fouled before playing or attempting to play the ball, or challenging an opponent for the ball, the foul is penalised as it has occurred before the offside offence"
http://www.thefa.com/football-rules-governance/lawsandrules/laws/football-11-11/law-11---offside