[FIX] handle syntax error on if statement