fix old patches