fix bug of stack module