Fixed: bugs of arithmetic functions