fix to arraylist problem