fix url vars for undefined values.