Unnecessary open file command deleted