Fixing bug during database update.