You are trying to convert map to tuple with List.to_tuple/1. It obviously does not work. It works on your initial mapped data:
You are trying to convert map to tuple with List.to_tuple/1. It obviously does not work. It works on your initial mapped data: