fix saving date