Improve ignore pattern behavior