Zeroes indices when setting new values