prev date fix