fix bug that cross buffer renaming for class is not working