bugfix in arraylist init