Fix problem with session init