fixed bugs in ignore list and strong the code