Fix synchronization issue when adding an output