Minor Fixes

Fixed a bug where subsections could be created without a file loaded