Fixed the dcg bug