Fixed bug with default node names. Fixed bug with incorrect checking if file is open.