Fix invalid method names