fix call to get dates