fixed a error with the exceptions