Fixed rounding error in stack labels. Closes #2576.