fix sleep pattern