fixed bug not being able to delete last option