Fixed bug in helper.