Preventing weird exception that causes the proxy to crash