fixed a bug with exact date giving a null pointer