Bugfixes when globalURL set to ''