Fixed array index in destroyfile