Remove debugging code
Fixed wrong order of config loading