fix patches method