fix error messages for misplaced ParameterizedExpressions