Fixed 500 error with uninitialized helper method

Fixed 500 error with uninitialized helper method