Fixed bot crashing on last level