Fixed recovery issue with last committing tx being flushed to -1 sometimes