fixes a bug in Arr class