Fix for variable expected to be array.