Fix creation from lists of tuples