bug in sharedptr move operation