Renewal of the mind is an ongoing process. Paul says: Don't conform to the world but be transformed by the renewal of your thinking. In Christ you think differently, but old patterns take time to be replaced.
Transformation starts in the mind. Not through discipline alone but through the Spirit renewing your thinking. You can replace old thoughts with truth.