fix bug: lose condition failed