fixed bug in simplegl