fix a bug that prevent day from updating