Fix hexCommand reference bug