Fix rerun onfailed runs