Fixed b ug in session