fix the ArrayOutofIndex bug in network battle