Fix getSharedData to return dictionary