fix issue with step5 removing all ids