Fixed issue: trial logging starts with a number N and logs the end of it with number N+1