Fix semantic_adapter