Fixed some codes on the gold file