Fix some calculations for H