Small change for detecting error on on:do: