fix failed to open terminal log