Fixing bug with using arrays for values of named params