Fixed bugs in re-compiling shaders.