If we don't do this, the views won't be there and the app will crash in some circumstances. Resolves #701.