fixed temperature algorithm bug, fixed the could not add instruction bug