We fixed the error at switching around the database when a class is saved.