fix url processing