null pointer fix
fixed url resolution bug