- fixed the update bug