fix bug back attributes_changed.