Fix the reducePath call