fix loosing selected dates when navigating