Setting the proper id for distribution management