fix bug in helper