bugs fixed in reducer