fix waitandverifystatus bug