Minor fix in stack reversing