Fixed bug #17464: ExtDirectCode is added twice