fixed missing sleep