Prevent selection overlapping