fix erroneous date reading