fix bug reset data for new distribution