Fixed rename diagram bug