Fixed expat check failure case