Do not store whole onions in plastic bags. The lack of air speeds up spoilage. Keep the onions in open container or basket.