fixed: map moved out of constructor to fix UrlHelper and 'share'