some fix
calculate.js