[bugfix] calling getURL on non-object