fixed a bug in models/__init__.py