fix bugs on using ProxyMapping