Fix some bugs in suggestion implementation and models.py