fix previous date