fix order of app start