fixed bug in reducercontext