Fix missing elements bug; make firstItem