[Jason, Chris] fix textAfterSelection