Fix syntax validation