bugfix for battles