fix selection problem