Fix for bad error message