Fixed an updating problem