The purpose of doing japa is to feed good thoughts continuously. You may think that whenever you do japa you get bad thoughts only. Yes. This happens at the beginning of japa.
I had a student in my class who had worked in an office where he had to attend parties regularly. He got addicted to the parties. He had to leave that job and had to take over the family business. He changed his job but the parties continued.