Two Bugs fixed for Reduce space and Tail
Two Bugs fixed for Reduce space and Tail