Fixed array.size bug