fix bug when 'rerun with debug' is invoked on an older error