Fix parsing of interfaces

Fix parsing of interfaces