fixing update_attributes on associations issue