solve the problem in resolveSyntaxPredicates