Cats can be very smart creatures but they sometimes don't even know what there doing. Cats can be taught something new just like dogs. If your cat has developed some very strange habits I have tips.
You need to find out what your cat's bad habit is first of all. It may be more than one so watch your cat carefully. I do suggest to fix one habit at a time.
Step2
So long that your watching your cat you might wanna watch why your cat stops doing a certain thing and just think about what happen that may of made your cat stop doing it or why it is doing it if your not sure what happened it is ok.
Step3
Use what you have observed.Use your cat's weakness to stop it,but it is not guareented he will stop,but there are also other methods like the one you observed in step 2
Step4
If you couldn't find a weakness from your cat then set something up that your cat will regret most liking they will stop soon enough.
Tips & Warnings
There is a more explained version on wikihow made by me so please don't accuse me of not bein original
Follow the Directions Carefully So Your Cat Won't End Up Scratching You.