fixed a bug when importing dates