fix bug with ONLY_LIST and IGNORE_LIST