Fix some array length bugs