gold futures heads higher after four-session loss