fix a bug after cross buffer rename