Fix changing type of intrface when changed name