attempt to fix empty url problem