fixes terminating statement inspection