little fix before sleep