Correct array clean up