Fix some bugs regarding added parameters.