Fix small code in entry and index