Fixed issue with removing items in JRE collection