Fixed the bug that throws errors in calc task