fixed a little before sleep