fix error with collection type on passing parameters