Correct typo.  We should use foreach_depth as the request data index not stack depth.

Various whitespace fixes