fixes Less Than greater than issue in session state