distribution flag bug fix