Fixed saving data into session.