Fix references to math package.