Wrong bot behaviour being used when multiple bots.

I was having an issue earlier where all the bots in the config would use the behaviour of the last bot in the config, it seems it would set the correct bot class but not use it, the statement above is from testing that i performed, so I can not guarantee that is the case for everyone. The code below seems to have fixed this for me.