fix bug of ignore flag