fix for error in battles