fixed a bug with auto-updates