Fixed the selection operation behaviour.