fixed a small bug where hidden edges could still be selected