fixed by using IDs for position in array