corrected some mistakes in models.py