Fixed issue with reusing predefined shaders.