Fixing factorial overflow in sine calculation.