stop AddFile when study is locked