fixed arraylist error