fixed models.py crash