Fix wrong array being called