Correct order of deletion