Fix inaccurate error message