Fix passing params to constructor.