Fix error on open log and ignore files