Fixed --ignore-errors behaviour