fix unique alias generation not respecting current item alias