Fix SugarORM issue