fix the extract method detecter