Fix trusted build issue