fixed bug with incorrect texture coordinates