Fixes for beginning/end of range selections