largestStack fix