Energy prices registered mostly small gains Aug. 5 following a previous volatile selloff in both commodity and equity markets in anticipation of an announcement by Standard & Poor's Financial Services LLC, a subsidiary of McGraw-Hill Cos. Inc., that for the first time lowered the US government’s credit rating to AA+ from the top AAA level because of increased political risks and rising debt burden.