Corrected errors in share component.