Fixed error in HAL with arrays not being right.