Fix NullPointerException with old configs