Fix list to map type.