Fix for passing arrays as values