fix bugs in new SharedList code