fixed wrong paremeters for exception
fixed #1