Fixed bug regarding not updating to reflect attribute changes