fix for the currentStack's size is 0 after pop