fixed bug when updating date between screen changes