fix bug in should_ignore function