Fixed variable name in exception message