Fix session dereferencing nil