fix diff if statement