fixed bug in sharedData usage