Fixed stack to get proper results