fix bug at Math.cpp