Fixed an infinite loop in the auto update