fix bugs on Stack.c