RichEdit line insertion error and how did I fix it