Fix some const return in getMethod()