Replace correct line