fix deserializing arrays