If you find something within yourself that you need to improve, be happy that you realized it. Be curious what could you learn for yourself and about yourself. Don't beat yourself up. You just have learned something wrong on the way and you are able to change it for better. It´s just learning and growing. You are doing the best you can, right? Be kind to yourself!