Fixed bug with same reference to arraylist