fix adding param through NewParam dialog