Why are there more fleas after applying flea medication to my cat?

My cat was scratching herself a lot, so i took her to the vet. They found flea dirt on her, and gave me some flea meds. I applied it when we got home. Like an 30 mins to an hour later, I was playing games while she was sitting in my lap, and I kept feeling a crawling sensation on my face. I rubbed my face, and there were fleas all over me. Does that mean the medication is working?

Why are there more fleas after applying flea medication to my cat?
Post Opinion