Fixed bug in shader parameter look-up