fixed deleting with list in reverse order