fixed a bug

that causes errors when resize() is not needed but current stack is
full. (forgot to increase the current_stack by 1)