fix HasRef_ error log.
CalcGoldvalue change.
HasRef_ minor change
ContainerName function change