Fix gram to ounce unit detection