fixed bug with thermal storage ls calculations