Fixed is_positive issue for atan