Fix slice index for parameter.