fix bugs: unmatched object and method