fix for criticality calculation