Fix bug in file open action.