fix 1000 lines problem in select function of meshx