Fixed bugs with more than one own texture.