Fixing potential infinite loop when bot steps down