fix distribution management