corrected bug that was prevented population key ID do not follow the desired order