fixed very long sleep bug