Fix a bug when external classes are not linked to a method of the interface