Fix bug in HSEQ helper