fixed bug in shader read-in