fixes compile errors and redefinition of field-meta