Adds correct entry id