fixes if statement