fix #10: The parameter string is added twice for some cases