Changed the initialization of two stacks