Fix MVC reference + session handling