Gold edges down $1 to settle at $1,278.40 an ounce