Fixed bugs in botnet protocol