Improved method replaceTVCondition