fix warning. Fix event for file sharing