Update application state after changing on demand restricting

Fixes #1515