Fixed lots of update bug.