last: fix uninitialized length