Fix duplicate entries in the patch