fixed date issue in scanner