Please improve the grammaticallity of this text:
One of the most important factors was that declining cost of oil at that time.
One of the most important factors was the declining cost of oil at that time.