fix onAddEntry