corrected bug in reduceDeep graph function