fix paragraph selection