fixed joint bug in addHC