Array length crash fix.