fixed error in helper