I would still check the script. A typical reason of a wrong value that disappears after restart is a wrong pointer or exceeding an array index. In such a case the problem can resurface.