Straight Beam Section orientation issue

Dynamo4AS creates Straight Beam (StraightBeam.ByStartPointEndPoint Node) in wrong vOrientation of the beam cross-section for the first time I run the script. Making the minor changes cause recalculation of the script, than cross-section will be oriented correctly.
Simple script here:

  • run script
  • check section orientation (wrong)
  • change beam length
  • run script
  • check section orientation (correct).
    Is there a way to get a correctly oriented profile when I first run the script?
    test_beam3.dyn (8.1 KB)

This is a bug, i fixed it in the master branch