Fix to addall

Fix to ArrayIndexOutOfBound when empty passage.