bug fix on ignore flag