Fixed bug preventing new orientation data to be calculated once array
size was filled.