fix selection of xlines