fix error in array