Fix new day problem