Fixed delete function in Todos factory.