Wrong variable use in exception.