Fix array size check

missing length