fix url issue on mac