RDO heat script bug fix