Fix adding method annotations to proxies