reset pointers to elements on clear()