fixed a bug in compiling shader set Shader function.