bug fix for H()