Fix typo in method extraction