Fixed some problems

Fixed connected textures (and possibly more) compatibility