Fixed some bugs with auto_update