Fixed fatal bug when project.currentlog was not the last of logs