fix the splitting URL bug