Some bugfixes. Fixed connected textures.