Corrected when we have a empty $TMP