Fix the empty node

Fix the empty node when stack is 0. And keep the empty string.