Fixed dcg bug