Fixes bug with demo app.