dec. gold ends up 1.3% at $1,017.80 an ounce