removing undefined from settings json