fix a bug that text of declaring temp mem is wrong.