Fixed bug in addentries!