fix passive mode bug