Fix a bug with multiple interfaces