fix restrict parameter + toggle prevent condition

As mentioned into issue #15