fixed bug when renaming a field