Fix the the Bug "Not working with multiple Iinterfaces"

Fixed the Bug "Not working with multiple Iinterfaces" and the bug with "duplicate filenames"