fixed model/arraylist saving bug