stack bugfix