Fix bug when d5 test retried