fixing wrong error message