fix distributions bug