Oil prices dip after US inventory gain