fixed type and sign for syntax errors