ArrayList collection error corrected