bug fix to get texture coordinates

bug fix to get texture coordinates