fixed a bug in semanticType parameter code