[FIX] handle sytax error on if statement