fixed an path problem with sleep