fixed bugs related to updating