Fix crash in paragraph selection
Fix selection update