Bugfix: update frequency distribution when data type changes