fix dist tool