backport added clear to scan manager. #372