Fixed bug in detection of existence of IBarPanel interface