updates Sessions.java for a smallfix