fixing for texture not rendering