fix ignore-list logic