Fix peewee bug