Sleep length fix