Fix sleep timeout