fixed a but in reading dates