distributor: fix a bug that wrong step ID is used