Fixed bug in loading configs