fixed crashes in tbs_bot