fix loading configs