Bugfix: session wasn't erased, implementation looded buggy