Apply patch