Fixed a load order bug in app.