Fix method parsing.