[PATCH 1/2] Utils: fix in list_to_dot function