syntax error check fix

closes PR 13639