[fix] call sleep multiple times rather than long one sleep