Fix code for DIC