replace incorrect expressions