Fixes bug : emptySelection could not be called