Fixed bot logic