small fix in Shader class
internal fix