fixed bug with temporary attribute changes