fix reducer input bug