fix cache and displaying dates