session serialize bug fix