fix params - thanks issue #4