Fix when deleting selected