Fixed a bug with headless models using patches of size 1, Fixed typo
Merge branch 'master' into gh-pages