fix date reading