If u send all of or some of ur pokemons in battle hall, all will battle with each other. It happens in all battle halls and all players faced that situation not only you. It's not bug. You can send only one pokemon out at once, otherwise they will attack each other. May be u will understand.