corrected bug in computation of dr.ghs2 introduced in commit 84eaaaf7 (cherry-picked by hand from commit 76407c97)