fix bug some imported files can not be watched