Fixed Bug with Reduce