fixed bug where pushing System.out on stack wasn't recorded by stack counter