fix race condition which caused by frequently backend up/down