fix pull-request typing error

cfr. the old pull request : "fix restrict parameter + toggle prevent condition #16"