oil inches up; gold flip-flops after record