Fixed serilizing session, however reading still causes null pointer