fixed issue with redirect on delete.