FIX: Trigger an error if a selection is empty