-fixed converting URLs to absolute URLs
-fixed NPE