gold closes modestly up at $1,387 an ounce