fix issue with param as array in hook run