Fixed reference to sharingtime variable that wasn't being defined