Be Careful What You Witch For - S2-E22
Other mistake: Phoebe says to the genie "you've been stuck in the bottle for 200 years?" Later the genie says he will be an unwelcome house guest and not put the CD's back in their case. If he was in the bottle for 200 years how would he know of CD's?