Fixed bug in DC type determination