Fix: Writing twice more values than an array can hold