Fix trusted accounts not being taken into account on custom instances