Fixed bugs when sending packets from manager to proxy