fixed syntax error on conditional