fixed bug where wrong textures were being mapped.