fixed rerun bug