fixed bug with recalc.py