Fixed an issue when a slice was used in an array in a function with other parameters.