fix if method is Class