avoid thread release problem