bugfix: version return 1 when no log exists