in reply to Object Troubles
I think maybe that you'd better show us the code that changes the attributes as there doesn't seem to be anything seriously wrong with the code that you've posted here.