Wrong if statement