Fix some issues with going back to overview from weekly view and dupes in history.