fix syntax error on conditional