bug fix for Wait status