Fixed misleading error message