Fixes bug and textures