fix texturing issue for multiple objects