fixed bugs with multiple interfaces