fix bug showing duplicate complex types