getMethod using return type bug fix