Fix for a selection bug discovered by Tom.