Fix syntax error end method redeclaration.