fixed creating external.js every start