Fixing ghost error message