fix bug with battle proxy