Fixed some shader-related problems