fix for texture and name bugs