fix hook for history sharing