Fix session started problem