Fixed small bug related with dates in structs and in main file.