fixed bug with parsing stack result