Fixed a little code in accordance with the change of TMP library.