fix complex types