fixed duplicate names after multiple level changes