patched an issue where empty ma result will be written into oim db