fix prevdate