Bug fix in reducer.