correction of wait count