TryEditFile fix