fix selection initial position bug