Fixed dependency injection problem with browser session trait