fix logic for resize proxy.