Fixed a bug with headless models using patches of size 1, Fixed typo