Fix --check-models bug (closes #491).