fixed problem whereby we were trying to put an array into the

 shared state when it can only accept strings