Fixed a bug where the app will start before the data is loaded.