correction timeout on wait functions