Fix wrong conversion of ignore pattern