hasFailed() fix