Fix custom level import for changing type attribute.