fix usage of current api proxy, which is now deprecated but in use.