Fixed some GORM-related bugs