Fix the bug; caught a previous exception flag when used inline code.
Update example