fixed incorrect exception parameters