Fixed bug with uploading textures and then changes to attributes not working. Removed history debug