Fixed an updating bug