fix issue about simulation mode