Fixing an bug in direct trust