fix reduce platform bugs