Fix patch contents behavior
Merge remote-tracking branch 'origin/v3-dev' into v3-dev