Fixed bug with addressing in shared vectors