Defense bug fix and group.bots bug fix