the bug of text selections is fixed