Remove config race condition

Make sure the config is loaded before doing anything.