Corrects shaders encoding