Fixed #969
Merge pull request #970 from masuidrive/fix_building_script

Fixed #969