file lock xml tree bug fixed