Fixing wrong error message