Fixing a bug with DCA