Fixed default on demand restricting for dangerous functions with a whitelist while no on demand restricting for category