fix duplicate handle at BIO mode