Samll improvement on open file command.