Set baseurl.
Fix NPE.