fix issue where parameter values which are lists get transformed