fix merging of config file (when adding image/videos in a