fix redirect after delete an entity