[FIX] bad if statement