fix error in plugin because TDiary.server_root was tainted