Move loading config to onResume.