fixe a bug for auto correction. tested with Firefox & Chrome