Fixed sessions serialization.