fix semantic error in appending CPP to repls