fix bugs on hmis report