fixing bug in double-producing remote url