fixed IntStack base code Fixes #8