Selection inversion works

3dfe28ffc0b96a9d0a85f19641c61d94fb725426