Possible fix for bot crashes