fix stacks