Using arrays, "is pending kill" error after i have removed element :/

Did you happen to find a solution? I’m having a similar problem.