fixed a refactor bug (parameters wher duplicated)