Fixed a fencepost error in the circular stack