Fix ignore pattern behavior