multi stack terminal error fixed