fixes some if statements

title