Fixed bug with one-shot parameter.