Fix waitforstatedoonce
0.7.4
Remoevd debug.