Fix problem with Session