Fixbug: file lock