I had the same problem when I installed new carpet… To fix the problem you have to reinstall new baseboard that is larger in height than the one that you have on there now… the best practice is to do all your cutting and fitting if your trimwork but not install it until after you take in and paint the pieces first.
Hope this helps you!!!!
~~Tommy ~~