fix sleep record