simulator: fixed sim stack exception check