Correct all grammatical flaws in the following paragraph
I like shoes, bags, shirts, and skirts, but I buy them when I need.
I like shoes, bags, shirts, and skirts, but I buy them only when I need them.