fix incorrect variable name that make build failed

Fix exception variable's name