fixed small bug when ending a previous log entry when requested to begin a new one