remove redundant globals from interactive mode
more tests when the id is False or the list of ids contains False