fix fieldname type lookup