fixed bug with recalc