fix a bug in fragment shader