Fix pb with selection cusor for the first time.