removing undefined from configs