small corrections in HAR creation routines