Fixed a bug with auto-remove with manual detection.

Under manual detection, the auto-removal function is temporarily
disabled. The user has to command the program explicitly to change the
exam.