Fixed end iterator being dereferenced on presentation