fix switching date