fixed detection if stack attributes are set