fix bug when the mr job failed