Fix an invalid configuration
Handle datatype whether list or atom