fix bug with multiple buses