Fix wrong indexes recieved from acadre. Filter the array.