Fixed a bug in reducerStg1

Signed-off-by: Archit Shukla <archishukla2@gmail.com>