fixed log_angles calculations