fix FormCalc bug