before he could take command of his fleet , the very competent louis de la touche-treville died and , in a rare moment of bad judgment , napoleon appointed the inferior pierre de villeneuve to replace him .