Fix passing arrays