fix reducer bugs
Merge branch 'master' into wj_dev