Fixed bugs related to parsing of interfaces