type field was being mangled