fix for buildUrl