Update initial loading.

Fixed bug with application won't initialize on reload.