fixed a stupid bug in the SourceSinkManager