Fix method_defined