fixed trust bug