Fixed replacing  dates opening