fixed calculation of all_hmis report