fix reducer