Fix error when trying to add tuple to a list