fixed another stackcount bug