fix compiling problem with atan