fixing bug with texcoord offset