Make sure entry ids are unique