Fixed the error in Sessions helper