Gold prices recover from 3-week lows, gains checked