#538 fix error in exception