typo in if condition (singular =)