fixed auto update bug