fix weird concurrancy issue