Fixed some issues in 'ReverseDirectionForForLoopAction'.