fixed hidden array index overflow.