fix remote pattern