clear should also set the entryId to zero