Fixed SetParameter bug in shader class