Modified the bugs that  math method couldn't continue calculate