fix GORM issue when not present