Set proper entry type to new added entry close #25