Richtext: Text were duplicated instead of delete when the selection goes from right tot left