Fix converter issue related to primitives