fixed bug in distrib_data