Emtpy session fix