Fixed bug in calling acos() function.