Fix error when there were not hits (division by zero)