auto_select delete condition fix