bugs in shader switching