Fixed a bug with stack/new