fix receiveavthread bug