Fixed exporting of on demand restricting function settings

Closes #1508