Fix patch method.

Previously only last field of patch was updated.
Merge branch 'master' into gh-pages
Build.