fixed bug in array