Fixes problem with M_PI