Launchpad build optimization.
Fixed #26 sigsegv on empty history.