issue #32: fixed segfault during recovery