fix url() method bug