fix in ignore list

simplified some code.