Fixed wrong error messages