Fixes bug : emptySelection could not be called

Major bug fix