fix some glsl bugs