Fix bug for angle between planes

Before, it would always find the obtuse angle.