Fixed stack problems.