fix distribution issues