Fixed nullpointer when selecting complex datatype format of global ports.