fix has/get for `end`