fixed a bug that date does not change