fixed bug in update_in